//创建router.js文件
//引入vue和路由
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from "../views/Home"
 
Vue.use(VueRouter) 
 
//创建路由实例，配置路由
const router = new VueRouter({
    routes: [
      {
        path: '/Home',
        name: '首页',
        component: Home,
        children: [{}]
      },
    ]
  })
//导出路由，挂载到Vue实例
export default router;
 
 